﻿using IQIGame.Onigao.Framework;
using System.Collections.Generic;

namespace IQIGame.Onigao.Game
{
    /// <summary>
    /// Dictionary全局对象池
    /// </summary>
    public static class DictionaryPool<K, V>
    {
        private static readonly DictionaryPoolImpl<K, V> pool = new DictionaryPoolImpl<K, V>(50);

        public static Dictionary<K, V> Get()
        {
            return pool.Get();
        }

        public static void Put(Dictionary<K, V> obj)
        {
            pool.Put(obj);
        }

        public static void Clear()
        {
            pool.Clear();
        }
    }
}
